package file.model;

import com.sun.org.apache.xpath.internal.operations.Bool;

import java.util.Date;

/**
 * @Author: zou
 * @email: 704572528@qq.com
 * @Date: 2020/10/27 15:15
 */
public class FileModel {

    /**
     * 盘符名字
     */
    private String name;
    /**
     * 全名 盘符 + 路径 C:/ss
     */
    private String fullName;

    /**
     * 盘符路径
     */
    private String path;

    /**
     * 是否根路径
     */
    private Boolean isRoot;

    /**
     * 是否是文件夹
     */
    private Boolean isFolder;

    /**
     * 类型
     */
    private String type;

    /**
     * 大小
     */
    private String size;
    /**
     * 修改日期
     */
    private String changeDate;

    public String getChangeDate() {
        return changeDate;
    }

    public void setChangeDate(String changeDate) {
        this.changeDate = changeDate;
    }

    public String getPathAndName () {

        return  path;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public FileModel(String name) {
        this.name = name;
    }


    public FileModel(String name, String path, Boolean isRoot, Boolean isFolder) {
        this.name = name;
        this.path = path;
        this.isRoot = isRoot;
        this.isFolder = isFolder;
    }

    public FileModel(){

    }

    public Boolean getRoot() {
        return isRoot;
    }

    public void setRoot(Boolean root) {
        isRoot = root;
    }

    public Boolean getFolder() {
        return isFolder;
    }

    public void setFolder(Boolean folder) {
        isFolder = folder;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }


    public String getFullName() {
        this.fullName = name + "("  + path + ")";
        return fullName ;
    }

    @Override
    public String toString() {
        return this.name;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }
}
